<?php

namespace app\api\controller;

use app\BaseController;//测试专用
use think\facade\Db;
use app\api\logic\ApiOrdercheckLogic;
use Throwable;

class ApiOrdercheck extends BaseController
{
    /**
     * 模型
     * @var object
     * @phpstan-var ApiAdvaccountModel
     */

    public function initialize(): void
    {
        parent::initialize();
    }

    /**
     * 每月采购成本
     * @throws Throwable
     */
    public function MonthlySpuCost()
    {
        $params     = $this->request->get();
        $ApiOrdercheckLogic = new ApiOrdercheckLogic();
        return $ApiOrdercheckLogic->MonthlySpuCost($params);
    }

    /**
     * 每月采购成本sku
     * @throws Throwable
     */
    public function MonthlySkuCost()
    {
        $params     = $this->request->get();
        $ApiOrdercheckLogic = new ApiOrdercheckLogic();
        return $ApiOrdercheckLogic->MonthlySkuCost($params);
    }

    /**
     * 每月统计店铺业绩
     * @throws Throwable
     */
    public function MonthlyStatisticsOfStore()
    {
        $params     = $this->request->get();
        $ApiOrdercheckLogic = new ApiOrdercheckLogic();
        return $ApiOrdercheckLogic->MonthlyStatisticsOfStore($params);
    }
}
